From 3d7737b8a749f918fcbf45df9c7ae3e37b09b784 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Fri, 14 Mar 2025 23:56:28 +0100 Subject: [PATCH] unsubmitted-ldso-multilib Gbp-Pq: Topic arm Gbp-Pq: Name unsubmitted-ldso-multilib.diff --- elf/dl-load.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/elf/dl-load.c b/elf/dl-load.c index f905578a6..e4e7675ab 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1647,6 +1647,17 @@ open_verify (const char *name, int fd, __set_errno (ENOENT); return -1; } +#ifdef __arm__ + else if (!VALID_FLOAT_ABI (ehdr->e_flags)) + { + /* This is not a fatal error. On architectures where + soft-float and hard-float binaries can be run this + might happen. */ + __close_nocancel (fd); + __set_errno (ENOENT); + return -1; + } +#endif else if (ehdr->e_ident[EI_DATA] != byteorder) { if (BYTE_ORDER == BIG_ENDIAN) -- 2.30.2